#!/bin/bash
u_gid=(`cat /etc/passwd|awk -F: '{print $4}'`)
u_name=(`cat /etc/passwd|awk -F: '{print $1}'`)
u_uid=(`cat /etc/passwd|awk -F: '{print $3}'`)
for i in ${!u_uid[@]}
do
	if (( ${u_uid[i]} >=500 ))&&(( ${u_uid[i]} <=5000 ))
	then
		echo -e "username: \e[31m${u_name[i]}\e[0m uid is \e[31m${u_uid[i]}\e[0m gid is \e[31m${u_gid[i]}\e[0m"
	fi
done
